﻿@model IEnumerable<Mes.Model.Tag>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.DeviceCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TagFullName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TagDesc)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DataType)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Value)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ChangeInterval)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LastupdateTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ParamFlag)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ValidFlag)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EnabledText)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DisabledText)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ParamHandle)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.DeviceCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TagFullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TagDesc)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ChangeInterval)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastupdateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ParamFlag)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ValidFlag)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EnabledText)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DisabledText)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ParamHandle)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
            @Html.ActionLink("Details", "Details", new { id=item.id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
    </tr>
}

</table>
